package linear.linked.base;

/**
 * 单链表
 *
 * @author yeyangtao created at 15:14 2020/8/28
 */
public class MyLinked<T> {
    private T value;
    private MyLinked<T> next;

    public MyLinked() {
    }

    public MyLinked(T value) {
        this.value = value;
    }


    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public MyLinked<T> getNext() {
        return next;
    }

    public void setNext(MyLinked<T> next) {
        this.next = next;
    }
}
